import logging
from appium.webdriver.common.mobileby import MobileBy
from Hogwarts.Homeworks.hw0704.page_objects.base import Base


class PageMemberProfile(Base):
    _BTN_EDIT_PROFILE = (MobileBy.ID, "com.tencent.wework:id/hc9")

    def tap_edit_icon(self):
        from Hogwarts.Homeworks.hw0704.page_objects.page_member_profile_operate import PageMemberProfileOperate

        logging.info("SETP：点击“更多操作”按钮")
        self.find_and_click(*self._BTN_EDIT_PROFILE)

        return PageMemberProfileOperate(self.driver)